package com.literature.threeGroup.service;

import com.literature.threeGroup.pojo.Log;
import com.literature.threeGroup.pojo.User;
import com.literature.threeGroup.util.PageResult;
import com.literature.threeGroup.vo.UserRole;

import java.net.UnknownHostException;
import java.util.List;

/**
 * @author VULCAN
 * @create 2020-01-08 14:59
 * @desc 用户
 **/
public interface UserService {

    /**
      * @name  用户登录
     * @Author VULCAN
     * @Date 2020/1/9 13:58
     */
    User userlogin(User user) throws UnknownHostException;
    /**
      * @name  更改登录时间
     * @Author VULCAN
     * @Date 2020/1/9 13:47
     */
    void updatelogindate(User user);
    /**
      * @name  用户管理
     * @Author VULCAN
     * @Date 2020/1/9 14:04
     */
    List<User> findall();

    /**
      * @name  vo数据
     * @Author VULCAN
     * @Date 2020/1/9 19:24
     */
    List<UserRole> findByAll();

    /**
     * @name  根据id查询
     * @Author VULCAN
     * @Date 2020/1/9 19:22
     */
    User findbyid(String userId);
    /**
     * @name  修改数据
     * @Author VULCAN
     * @Date 2020/1/9 19:22
     */
    void userupdate(User user) throws UnknownHostException;

    /**
      * @name  添加数据
     * @Author VULCAN
     * @Date 2020/1/9 19:29
     */
    void userinsert(User user) throws UnknownHostException;


    /**
      * @name  修改密码
     * @Author VULCAN
     * @Date 2020/1/11 9:59
     */
    void userupdatepwd(User user) throws UnknownHostException;
    /**
      * @name  分页模糊
     * @Author VULCAN
     * @Date 2020/1/17 9:45
     */
    PageResult findByAllname(UserRole userRole, int pageNum, int pageSize);
    /**
      * @name  批量删除
     * @Author VULCAN
     * @Date 2020/1/17 10:00
     */
    String userbulkdel(String[] ids) throws UnknownHostException;
    /**
     * @name  usercount
     * @Author VULCAN
     * @Date 2020/1/11 10:01
     */
    List usercount();
}
